From 60dadd604d277e30f6908d1ac8cb8add12261d1b Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 28 May 2009 10:03:29 +0100 Subject: [PATCH] blktap2: fix tapdisk-channel.c This patch fixes the following error. cc1: warnings being treated as errors In file included from usr/include/sys/resource.h:25, from tapdisk-daemon.c:559: usr/include/bits/resource.h: In function 'main': usr/include/bits/resource.h:33: warning: ISO C90 forbids mixed declarations and code Signed-off-by: Isaku Yamahata --- tools/blktap2/daemon/tapdisk-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/blktap2/daemon/tapdisk-daemon.c b/tools/blktap2/daemon/tapdisk-daemon.c index ecfc0f3c5b..ce3590400c 100644 --- a/tools/blktap2/daemon/tapdisk-daemon.c +++ b/tools/blktap2/daemon/tapdisk-daemon.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include "disktypes.h" @@ -556,7 +557,6 @@ main(int argc, char *argv[]) #define CORE_DUMP #if defined(CORE_DUMP) -#include { /* set up core-dumps*/ struct rlimit rlim; -- 2.30.2